import java.util.ArrayList;
import java.util.List;



public class EntiteClient {
	protected int id;
	protected String login;
	protected String password;
	protected List<Facture> factures;
	
	
	public EntiteClient(int id, String login, String password) {
		super();
		this.id = id;
		this.login = login;
		this.password = password;
		
		this.factures = new ArrayList<Facture>();
	}
	
	public int verifyPassword(String pass) {		
		return pass.compareTo(password);
	}


	public int getId() {
		return id;
	}


	public void setId(int id) {
		this.id = id;
	}


	
	public List<Facture> getFactures() {
		return factures;
	}

	public void addFacture(Facture facture) {
		this.factures.add(facture);
	}

	public String getLogin() {
		return login;
	}
	
	
	

}
